const express = require('express');
const router = express.Router();
const {server} = require("../../controllers");
const { verifyToken } = require("../verifyToken");

// 获取分组数据
router.post("/getSubset", (req, res) => server.getSubset(req, res))
// 新建分组
router.post("/addSubset", verifyToken, (req, res) => server.addSubset(req, res))
// 修改分组名称
router.post("/updateSubset", verifyToken, (req, res) => server.updateSubset(req, res))
// 删除分组
router.post("/deleteSubset", verifyToken, (req, res) => server.deleteSubset(req, res))

module.exports = router;